package com.albert.java_log4j_demo;

import java.text.DecimalFormat;

/**
 * @author chen hui
 * @version 1.0
 * @date 2021/6/19 14:11
 */
public class showMoneyFormat {
    public static void main(String[] args) {
        DecimalFormat df = new DecimalFormat("######0.00");
        System.out.println(df.format((float)10/100));
        System.out.println((float)10/100);
    }
}
